package Thread;

public class Demo16 {
    public static void main(String[] args) {
        Thread thread=new Thread(()->{
            for (int i = 0; i < 500; i++) {
                System.out.println(i);
            }
        });
        thread.start();
        try {
            thread.join();
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }

        for (int i = 0; i < 5; i++) {
            System.out.println("good nice");
        }
    }
}
